{% extends "assistant_tournament_index.html" %}
{% load i18n debate_tags static %}

{% block content %}

  {% if round.is_break_round %}
    {% tournamenturl 'tournament-donations' as url %}
    {% blocktrans trimmed with amount=tournament.billable_teams asvar text %}
      We hope you've enjoyed using Tabbycat for your tournament. We would appreciate if you would
      make a donation to the project in order to support its ongoing development and maintenance.
      For a tournament of this size, we suggest a donation of <strong>${{ amount }}</strong>.
      Note that if your tournament is run for profit, or for fundraising, making this payment is a
      mandatory condition of Tabbycat's software license.
      <a href="{{ url }}">Learn more about donating.</a>
    {% endblocktrans %}
    {% include "components/item-info.html" with type="info" icon="heart" %}
    <hr>
  {% endif %}

  {% if blank %}

    <div class="card border-info text-info mb-3">
      <div class="card-body">
        <h4 class="card-title">{% trans "Welcome to your new tournament!" %}</h4>
        <p class="card-text">
          {% blocktrans trimmed %}
            The next step is to import your initial tournament data: the
            institutions, teams, adjudicators and rooms that are in your
            tournament. There are a number of ways to do this. For small-to-medium
            tournaments, the simple importer is your best bet.
          {% endblocktrans %}
          {# Translators: The documentation where the link goes to is in English; translations should mention this with "(in English)" after the link. #}
          {% blocktrans trimmed %}
            For more information, please consult our
            <a href="https://tabbycat.readthedocs.io/en/{{ readthedocs_version }}/use/importing-data.html" class="alert-link" target="_blank">
            documentation on importing initial data</a>.
          {% endblocktrans %}
        </p>
      </div>
    </div>

    {% tournamenturl 'importer-simple-index' as url %}
    {% trans "Use the simple importer to add your initial data." as text %}
    {% include "components/item-action.html" with alone=True to_complete=True %}

  {% elif round.draw_status == round.STATUS_NONE %}

    {% roundurl 'availability-index' round as url %}
    {% blocktrans trimmed with round=round.name asvar text %}
      Go to the checkins area to begin creating a draw for {{ round }}
    {% endblocktrans %}
    {% include "components/item-action.html" with alone=True to_complete=True %}

  {% elif round.draw_status == round.STATUS_CONFIRMED %}

    {% roundurl 'draw' round as url %}
    {% blocktrans trimmed with round=round.name asvar text %}
      Go to the draw area to allocate adjudicators for {{ round }}
    {% endblocktrans %}
    {% include "components/item-action.html" with alone=True to_complete=True %}

  {% elif round.draw_status == round.STATUS_RELEASED %}

    {% roundurl 'results-round-list' round as url %}
    {% blocktrans trimmed with round=round.name asvar text %}
      Go to the results area to begin entering ballots for {{ round }}
    {% endblocktrans %}
    {% include "components/item-action.html" with alone=True to_complete=True %}

  {% endif %}

  {% if global_preferences.accounts__admin_account_key or global_preferences.accounts__assistant_account_key %}
    {% tournamenturl 'options-tournament-section' section='global' as url %}
    {% blocktrans trimmed asvar text %}
      You have enabled a URL that allows users to create new accounts. You should <strong>disable it once the tournament starts</strong>.
    {% endblocktrans %}
    <div class="mt-3">
      {% include "components/item-action.html" with alone=True type="warning" icon="alert-triangle" to_complete=True %}
    </div>
  {% endif %}

  {{ block.super }}

{% endblock content %}
